package org.example.realtime.jtp.serv.jtpservicerealtime.service;

import org.example.realtime.jtp.serv.jtpservicerealtime.bean.AppStartCount;
import org.example.realtime.jtp.serv.jtpservicerealtime.bean.KeyCount;
import org.example.realtime.jtp.serv.jtpservicerealtime.bean.TrafficUvReport;
import org.example.realtime.jtp.serv.jtpservicerealtime.mapper.TrafficChannelStatsMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author Lianzy
 * @Package org.example.realtime.jtp.serv.jtpservicerealtime.service
 * @Date 2025/5/21 15:50
 */
@Service
public class TrafficChannelStatsServiceImpl implements TrafficChannelStatsService {
    /**
     * 自动装载Mapper借=接口实现类
     * @param date
     * @return
     */
    @Autowired
    TrafficChannelStatsMapper trafficChannelStatsMapper;
    @Override
    public List<TrafficUvReport> getUvCount(String date) {
        return trafficChannelStatsMapper.selectUvCount(date);
    }

    @Override
    public List<KeyCount> keycount(String date) {
        return trafficChannelStatsMapper.selectkeycount(date);
    }

    @Override
    public List<AppStartCount> Startcount(String date) {
        return trafficChannelStatsMapper.selectstartcount(date);
    }
}
